package com.juanable.niubility.designPatterns.impl;

import com.juanable.niubility.designPatterns.StrategyEnum;
import com.juanable.niubility.designPatterns.StrategyHandler;
import org.springframework.stereotype.Service;

/**
 * @Auther: lyg
 * @Data: 2022/8/8
 */
@Service
public class ToyotaStatementImpl implements StrategyHandler<String> {

    @Override
    public void process(String str) {
        System.out.println("杰哥drive:" + str);
    }

    @Override
    public StrategyEnum getType() {
        return StrategyEnum.TOYOTA;
    }
}
